package com.xyht.medicine_management_system.modules.user.entity.resp;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户审核表
 * </p>
 *
 * @author XYHT
 * @since 2023-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_user_examine")
@ApiModel(value="MmsUserExamine对象", description="用户审核表")
public class MmsUserExamineResp implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String userId;

    private UserinfoResp applyUserinfo;

    @ApiModelProperty(value = "申请类型  1：企业用户  2：个人用户")
    private Integer applyType;

    @ApiModelProperty(value = "营业执照")
    private String license;

    @ApiModelProperty(value = "经营许可证")
    private String businessLicense;

    @ApiModelProperty(value = "是否委托申请  0：否  1：是  委托申请需要委托书，委托人身份证")
    private Integer isEntrust;

    @ApiModelProperty(value = "委托书")
    private String proxyFile;

    @ApiModelProperty(value = "委托人身份证正面")
    private String proxyIdCardFront;

    @ApiModelProperty(value = "委托人身份证反面")
    private String proxyIdCardBack;

    @ApiModelProperty(value = "法人或个人身份证正面")
    private String personIdCardFront;

    @ApiModelProperty(value = "法人或个人身份证反面")
    private String personIdCardBack;

    @ApiModelProperty(value = "审批状态  0：待审核  1：通过  2：拒绝")
    private Integer examineStatus;

    @ApiModelProperty(value = "审批时间")
    private Date examineTime;

    @ApiModelProperty(value = "审批人")
    private String examineUser;

    private UserinfoResp examineUserinfo;

    @ApiModelProperty(value = "审批意见")
    private String examineOpinion;

    @ApiModelProperty(value = "委托代理人身份证号")
    private String proxyIdCard;

    @ApiModelProperty(value = "委托代理人姓名")
    private String proxyName;

    @ApiModelProperty(value = "法人或个人身份证号码")
    private String personIdCard;

    @ApiModelProperty(value = "法人或个人姓名")
    private String personName;

    @ApiModelProperty(value = "公司名")
    private String companyName;

    @ApiModelProperty(value = "统一社会信用代码")
    private String licenseNum;

    @ApiModelProperty(value = "资质类型  0：无   1：药品经营资质")
    private Integer qualificationType;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
